#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

typedef struct fen
{
	int a;
	int b;
}grade;

char compare(grade* x, grade* y)
{
	float a = (float) x->a / x->b;
	float b = (float) y->a / y->b;
	if (a > b)
		return '>';
	else if (a < b)
		return '<';
	else
		return '=';
}

int main()
{
	grade x, y;
	char size=0;
	int i = 0;
	scanf("%d/%d", &x.a, &x.b);
	scanf("%d/%d", &y.a, &y.b);
	size = compare(&x, &y);
	printf("%d/%d %c %d/%d", x.a, x.b, size, y.a, y.b);
	return 0;
}